import React from 'react';
import { Space, Form, Input, Switch } from 'antd';

export default function BasicSetting() {
  return (
    <Space direction="vertical" style={{ width: '100%' }}>
      <Form.Item name="deviceName" label="设备名称">
        <Input placeholder="设备名称" />
      </Form.Item>
      <Form.Item name="location" label="所在地">
        <Input placeholder="所在地" />
      </Form.Item>
      <Form.Item name="isOnline" label="在线" valuePropName="checked">
        <Switch />
      </Form.Item>
    </Space>
  );
}